package cn.zsb.innerClassDemo;

public class Outer {
     int a = 10;
    static int b = 20;

    static class Inner {
        public void show1(){
            System.out.println("非静态方法");
            /*Outer outer = new Outer();
            System.out.println(outer.a);
            System.out.println(b);*/
        }

        public static void show2(){
            System.out.println("静态方法");
        }
    }


    /*class Inner {
        private int a = 20;

        public void show() {
            int a = 30;
            System.out.println(a);
            System.out.println(this.a);
            System.out.println(Outer.this.a);
        }
    }*/

/*
    public Inner getInstance() {
        return new Inner();
    }*/
}
